package bkq.viettravel.bll;

import bkq.viettravel.database.SqliteServices;
import android.content.Context;
import android.database.Cursor;
import android.util.Log;

public class TestBLL {
	
	SqliteServices service = null;
	public TestBLL(Context context) {
		service = new SqliteServices(context);
	}
	
	public void excuteSql()
	{
		String sql = "select * from Travel";
        Cursor c = service.queryData(sql);
        try {
			if(c.moveToFirst())
			{
				do
				 {
					Log.d("ket qua", c.getString(c.getColumnIndex("name")));
					 
				 }while(c.moveToNext());
			}
		} catch (Exception e) {
			// TODO: handle exception
		}
	}

}
